Xbasic
a5_ai_prompt_with_files Function
Syntax
c a5_ai_prompt_with_files(c namedresource, c prompt,c files)
Arguments
- namedresource
Named resource for specifying ai server to use, api key, model and settings.
- prompt
Prompt to pass to the AI endpoint.
- file
One or more cr-lf delimited lists of files.
Returns
- result
Text response from the endpoint, otherwise and error string with '#Error' prefix
Description
Request an AI response for a text prompt with included files.
Example
? a5_ai_prompt_with_files("openai","Summarize this documentation","\\AlphaHelp\helpfiles\Guides\Alpha Cloud\Alpha Anywhere Developers Guide\Overview.html")